package com.ryan.quartz.test.temp;

import com.ryan.quartz.temp.observer.CurrentConditionsDisplay;
import com.ryan.quartz.temp.observer.ForecastDisplay;
import com.ryan.quartz.temp.observer.StatisticsDisplay;
import com.ryan.quartz.temp.observer.WeatherData;

/**
 * @author Rayn on 2017/10/17.
 * @email liuwei412552703@163.com.
 */
public class WeatherStation {

    public static void main(String[] args) {

        WeatherData weatherData = new WeatherData();

        CurrentConditionsDisplay conditionsDisplay = new CurrentConditionsDisplay(weatherData);

//        StatisticsDisplay statisticsDisplay = new StatisticsDisplay();
//        ForecastDisplay forecastDisplay = new ForecastDisplay();

        weatherData.registerObserver(conditionsDisplay);

        weatherData.changeMeasurements(60, 65, 30.4f);
        weatherData.changeMeasurements(55, 70, 40.5f);




    }
}
